package com.yuyou.tas.feedback.api;

import com.yuyou.tas.feedback.mapper.FeedbackNoteMapper;
import com.yuyou.tas.feedback.service.IFeedbackNoteService;
import com.yuyou.tas.service.api.feedback.entity.FeedbackNote;
import com.yuyou.tas.service.api.feedback.service.FeedbackNoteAPI;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;
import com.yuyou.tas.util.bean.ReturnResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class FeedbackNoteAPIImpl implements FeedbackNoteAPI {

    @Autowired
    private FeedbackNoteMapper mapper;

    @Autowired
    private IFeedbackNoteService feedbackNoteService;

    @Override
    public ResBoolSimpleInfo addFeedbackNote(Long feedbackClassId, String urls, Long organId, Long userId) {
    	return feedbackNoteService.addFeedbackNote(feedbackClassId , urls ,organId ,userId);
    }

    @Override
    public ReturnResult delFeedbackNote(Long feedbackNoteId) {
    	return feedbackNoteService.delFeedbackNote(feedbackNoteId);
    }

    @Override
    public List<FeedbackNote> findNoteByFeedbackClassId(Long feedbackClassId) {
    	return mapper.findNoteByFeedbackClassId(feedbackClassId);
    }

    @Override
    public List<FeedbackNote> findAllNeedOperate() {
        return feedbackNoteService.findAllNeedOperate();
    }
}